﻿using System;
using System.Web;
using Yglu.BusinessLayer;
using Yglu.BusinessLayer.Entities;

namespace Yglu.WebAdmin
{
	public class Global_asax : HttpApplication
	{
		#region Application methods

		protected void Application_Start(object sender, EventArgs e)
		{
			Devv.Core.Erroo.Config.LoadFromXml();
			Devv.Core.Crypto.Config.LoadFromXml();
			Devv.Core.UniDataTier.Config.LoadFromXml("Yglu");

			Settings.SystemConfig = new SystemConfig(DataAccess.SystemConfig_Get());
			Settings.Stores = new StoreCollection(DataAccess.Store_Get());
		}

		protected void Session_Start(object sender, EventArgs e)
		{

		}

		protected void Application_BeginRequest(object sender, EventArgs e)
		{

		}

		protected void Application_AuthenticateRequest(object sender, EventArgs e)
		{

		}

		protected void Application_Error(object sender, EventArgs e)
		{

		}

		protected void Session_End(object sender, EventArgs e)
		{

		}

		protected void Application_End(object sender, EventArgs e)
		{

		}

		#endregion
	}
}